# define
+ Global environment replacement
+ Type: `Record<string, any>`

## defineFix
+ Type: `all` | `esm` | `cjs` | `none`
+ Default: `cjs`

:::tip 
Whether to create process.env for CJS or import.meta.env for ESM
all - create both
esm - create import.meta.env
cjs - create process.env
none - don't create
:::

```ts title="emp-config.js"
import {defineConfig} from '@empjs/cli'
export default defineConfig(store => {
  return {
        define:{
            cdnHost:'cdn.com'
        },
        defineFix:'cjs'
    }
  }
})
```